home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / tex / note.zip / NOTE.DOC < prev    next >
Text File  |  1988-10-09  |  9KB  |  161 lines

  1.                                    NOTE.COM
  2.                                   Version 1.0
  3.                                       by Bob Kaye 73047,2422
  4.  
  5. NOTE is a resident program that is sort of a poor man's LIST.  It will pop up 
  6. from within a program and display a file you choose, a specified directory or 
  7. make a screen copy.  You can scroll through a file by line, by page and in 3 
  8. page chunks.  There's no limit on file size. 
  9.  
  10. NOTE's resident coding is about 3100 bytes*; not very much considering what it 
  11. does.  It accomplishes this by using the video RAM (VRAM) above the normal 
  12. display both as a DTA for the file reads and for display purposes.  This 
  13. approach has its pluses and minuses; the big plus being it keeps normal RAM 
  14. consumption to a minimum.  The big minus is that some applications (not many 
  15. from what I,ve seen) also use this piece of VRAM.  Thus, there are occasionally 
  16. conflicts in which NOTE is generally the loser; that is, a screen you may have 
  17. copied with NOTE for reference while using a program, will get wiped out 
  18. because that program clears all video memory when invoked.  Similarly, a 
  19. screen copy from within a program will get wiped out when the program 
  20. terminates because it clears all video memory before doing so.  In either 
  21. case, there are no crashes, upsets, etc. and life goes on. 
  22.  
  23. NOTE has been written for the text modes of an EGA card.  An orderly change 
  24. to monochrome mode will be trapped by NOTE and the display parameters will be 
  25. changed to reflect this.  The current NOTE display will be lost and you'll 
  26. start again from scratch.  NOTE should also function with a VGA card, though 
  27. its not been tested with one.
  28.  
  29. NOTE has been coded to pop up only when video page 0 is the active page and the 
  30. display is set for 25 lines.  
  31.  
  32. SYNTAX: Note [ - ] | [ * ]<CR> 
  33.  
  34. The only recognized arguments are the hyphen (-) and the asterisk (*); the 
  35. hyphen will toggle the resident copy of NOTE on or off.  The asterisk will 
  36. allow you to change the Hot Key.  The error messages, both during installation 
  37. and when popped up, are more or less self explanatory. 
  38.  
  39. NOTE is popped up by hitting <CTL><TAB>.  It will only install itself once.  
  40. Hit <ESC> to return to the underlying program or DOS prompt.  When you call 
  41. for NOTE to pop up again, the display will be the same.
  42.  
  43. NEW FILE*
  44. At any time NOTE is popped up, hitting F4 will get you to a prompt asking for 
  45. a new filename.  Enter the full filespec, including drive and path if neither 
  46. is the current one, hit <CR>, and voila!,..its there.  Assuming you are using 
  47. a hard disk, its advisable to always enter a path, even if it is the current 
  48. directory.  By so doing, NOTE will always find the file, even if you change 
  49. directories.  The same logic applies to specifying a drive in the filespec.  
  50. However if you have a single partition hard disk, there's probably no need to 
  51. specify one. 
  52.  
  53. SCROLLING
  54. Due to the nature of the beast, scrolling within NOTE is a little different 
  55. than from within a word processor.  A maximum of 4000 bytes are read from a 
  56. file at one time.  These 4000 bytes, depending on how they format, generally 
  57. represent 10-14000 bytes of VRAM usage (4000 attribute bytes, plus line 
  58. feeds, tabs, etc.).  A file read is formatted, written to high VRAM and the 
  59. first page (25 lines) is displayed.  Scrolling through a single 4000 byte read 
  60. is just the same as in a word processor... until you reach the end.  Then, 
  61. another 4000 byte file read has to be made and the process is repeated;  the 
  62. difference being that the next line now appears at the top of the screen, not 
  63. at the bottom.  It's a little annoying, but you get accustomed to it.  It 
  64. probably could have been programmed differently, but in the interest of speed 
  65. and size, hardware scrolling was used rather than moving bytes around. 
  66.  
  67. HOME and END relate to any 4000 byte read, not to the entire file.  F3 goes 
  68. back to the beginning of the file from wherever you are. There is no quick and 
  69. dirty way to get to the end of a file.  You have to scroll through it.  No 
  70. beep is sounded or message displayed when you do reach the end.  The display 
  71. just doesn't change, despite your best efforts to make it do so. 
  72.  
  73. I always seem to scroll past what I'm looking for.  With NOTE its possible to 
  74. overshoot and end up in the next 4000 byte read.  To cover that contingency, 
  75. hitting F2 will back up and re-display the prior 4000 byte read.  (Once you've 
  76. done that however, F2 will not do anything until another file read is made.) 
  77. After hitting F2, the display will be at the beginning of the re-read, so you 
  78. can scroll through again and find what you missed.  The ability to back up one 
  79. read is lost if you exit and then re-enter NOTE - at least until you scroll 
  80. through to the next file read.  
  81.  
  82. If you know what you're looking for is near the end of a large file, you can 
  83. scroll through in bigger chunks using F1.  It will move you ahead 4000 bytes 
  84. at a time. 
  85.  
  86. The majority of my text files are only 80 columns wide, with the widest being 
  87. around 100 columns.  These are the limits I designed into the NOTE display.  A 
  88. text file up to 100 columns wide will be displayed in proper format; only 80 
  89. columns will be displayed at any time, but you can scroll using RIGHT to see 
  90. the last 20 columns.  Using LEFT, you can scroll back the same 20 columns.  
  91. Any file greater than 100 columns will end up being formatted to 100 columns 
  92. with the balance being displayed on the next line (like DOS TYPE). 
  93.  
  94. NOTE will handle binary files pretty much as TYPE does; it will not display 
  95. them in hex format.  It may be useful if you want to see the ASCII contents of 
  96. a binary file. 
  97.  
  98.                          KEY SUMMARY
  99.  
  100.         F1 - read and display the next 4000 bytes from the file.
  101.         F2 - re-display the previous 4000 byte read
  102.         F3 - start over from the beginning of the file
  103.         F4 - load and display a new file
  104.         F5 - make a copy of the screen (from the underlying program or DOS)
  105.         F9 - display a small help screen*
  106.         F10 - display a directory*
  107.         UP - scroll the display up one line
  108.         DOWN - scroll the display down one line
  109.         HOME - display the first page of the current 4000 byte read
  110.         END - display the last page of the current 4000 byte read
  111.         PGUP - scroll the display up 25 lines
  112.         PGDN - scroll the display down 25 lines
  113.         RIGHT - scroll right 20 columns if display is >80 columns (only once)
  114.         LEFT - scroll left 20 columns (only once)
  115.         ESC - return to underlying program
  116.  
  117. SCREEN COPY
  118. Screen Copy is straight forward; pop up NOTE, and hit F5.  The underlying 
  119. screen will be copied and displayed at that time, as well as when NOTE is 
  120. popped up again.  Anything that was being displayed by NOTE prior to the 
  121. screen copy will be lost. 
  122.  
  123. DIRECTORY
  124. Essentially the same as screen copy except after hitting F10, you'll be 
  125. prompted for a path.  Enter it, hit the <CR> and the desired directory, 
  126. filenames only, will appear.  Only one video page of filenames - 125 - will
  127. be displayed.  Anything being displayed by NOTE at the time you call for a 
  128. directory is lost. 
  129.  
  130. HELP*
  131. Hit F9 at any time to get non-context sensitive help.  
  132.  
  133. CHANGING THE HOT KEY
  134. If the default, <CTL><TAB>, causes a conflict, NOTE will let you change the 
  135. base key (TAB, not CTL).  It patches the copy of NOTE.COM in the current 
  136. directory; it does not change the resident coding if NOTE is already loaded.  
  137. When loaded in the future, this file will use the new Hot Key.
  138.  
  139. To patch in a new Hot Key, use the asterisk as a command line argument.  
  140. Instructions will be provided as you proceed.  NOTE will not accept any 
  141. extended or toggle key - CTL, ALT, INS, SHIFT, F1 - F10, HOME, etc.
  142. With the patch argument, NOTE will not be loaded.  
  143.  
  144. To change the resident Hot Key without re-booting, but after patching, invoke 
  145. NOTE from the command line again.  You will get an 'Already Installed' 
  146. message, and the new Hot Key will be written into the resident code.